/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gov.mtc.dgac.licencias.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pe.gov.mtc.dgac.licencias.bean.HallazgoTO;
import pe.gov.mtc.dgac.licencias.persistence.HallazgoDAO;

/**
 *
 * @author elvis
 */
@Service
public class HallazgoImplService implements HallazgoService {

    @Autowired
    private HallazgoDAO hallazgoDAO;
    
    public List<HallazgoTO> listarHallazgos(int auditoria,int codProcedimiento) {
        return hallazgoDAO.listarHallazgos(auditoria,codProcedimiento);
    }

    public void registrarHallazgo(HallazgoTO hallazgo) {
        hallazgoDAO.registrarHallazgo(hallazgo);
    }

    public HallazgoTO obtenerHallazgo(int codHallazgo) {
        return hallazgoDAO.obtenerHallazgo(codHallazgo);
    }

    public void eliminarHallazgo(int idHallazgo) {
        hallazgoDAO.eliminarHallazgo(idHallazgo);
    }

}
